/*
 * @Description: 数组
 * 
 * @Author: rendc
 * 
 * @Date: 2025-07-22 11:47:18
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-07-22 12:00:00
 */
public class Test05Arr {

  public static void main(String[] args) {
    // 定义一个数组
    int a = 0;
    int[] arr = { 1, 2, 3, 4, 5 };
    System.out.println("arr.length：" + arr.length); // 数组长度5 下标0-4
    int arr1[] = { 1, 2, 3 }; // 不常用
    System.out.println("arr1.length：" + arr1.length); // 数组长度3 下标0-2
    int arr2[] = new int[2];
    int[] arr3 = new int[3];
    System.out.println(arr2); // [I@15db9742 ?
    System.out.println(arr3); // [I@6d06d69c ?
    System.out.println(arr3[0]); // 0
    System.out.println(arr3[1]); // 0
    System.out.println(arr3[2]); // 0
  }
}
